package com.coldchain.cys.api;

import com.coldchain.authclient.annotation.CheckUserToken;
import com.coldchain.common.msg.BaseResponse;
import com.coldchain.cys.mapping.ApiUtils;
import com.coldchain.cys.service.ICysAccountService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import springfox.documentation.annotations.ApiIgnore;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author tianpeng
 * @since 2018-09-05
 */
@Controller
@CheckUserToken
@Api(description="承运商财务模块")
public class CysAccountController {

	@Autowired
	private ICysAccountService cysAccountService ;
	
	@ApiIgnore
	@RequestMapping(value=ApiUtils.DO_HANDLE_ACCOUNT,method= {RequestMethod.POST})
	public BaseResponse doHandleAccount(String orderId, String signature, String key) {
		return cysAccountService.doHandleAccount(orderId,signature,key) ;
	}

}
